package listeners;

import entities.Entity;
import game.Level;

import java.util.EventObject;

public class SpawnEvent extends EventObject {

	private static final long serialVersionUID = 1L;

	private final Entity entity;
	private final Level level;

	public SpawnEvent(Object source, Entity entity,  Level level) {
		super(source);
		this.entity = entity;
		this.level = level;
	}
	
	public Entity getEntity() {
		return entity;
	}

	public Level getLevel() {
		return level;
	}

}
